<div class="column-left">
    <div class="left" style="width:100%;">
      <h3 style="color:#fff;">ТОГЛОГЧИД</h3>
      <div class="box-wrap mod-list" style="padding:5px!important;">

          <?php 
            echo 'Нэрээр : &nbsp;';
            $letters = myConstants::getLetters();
            foreach ($letters as $letter)
                echo link_to($letter, 'player/index?seasonId='.$seasonId.'&letter='.$letter, array()).' | ';
            echo link_to('Бүгд', 'player/index?seasonId='.$seasonId, array());
            echo '<br clear="all">';
            
            echo 'Байрлалаар: &nbsp;';
            $positions = Doctrine::getTable('BbPositions')->createQuery('')->execute();
            foreach ($positions as $position)
                echo link_to($position, 'player/index?seasonId='.$seasonId.'&positionId='.$position->getPId(), array()).' &nbsp; | &nbsp; ';
            echo link_to('Бүгд', 'player/index?seasonId='.$seasonId, array());
            echo '<br clear="all">';
    
            $letter = $sf_request->getParameter('letter');
            $positionId = $sf_request->getParameter('positionId');
            $teamIds = Doctrine::getTable('BbSeasonTeams')->getTeamIds($seasonId);
            $pager = Doctrine::getTable('BbPlayers')->getPager(array('positionId'=>(isset($positionId) ? $positionId : ''), 'letter'=>(isset($letter) ? $letter : '')), $teamIds, $sf_params->get('page'));
           ?>
         
           <?php include_partial('player/players', array('players'=>$pager->getResults(), 'seasonId'=>$seasonId));?>
           
           <?php echo pager($pager, 'player/index?seasonId='.$seasonId)?>
           
           <br clear="all">
         
      </div>
    </div>

</div><!--column-left-->

<?php include_partial('main/right', array());?>

<br clear="all">